function zhuce() {
    var username = $("input[name='username']").val();
    var password = $("input[name='password']").val();
    var password1 = $("input[name='password1']").val();
    var trueName = $("input[name='trueName']").val();
    var phone = $("input[name='phone']").val();

    if (password != password1) {
        alert("请保持密码一致");
        return false;
    }

    $.ajax({
        url: "/user/zhuce",
        type: 'GET',
        data: {
            'username': username,
            'password': password,
            'trueName': trueName,
            'phone': phone
        },
        dataType: "JSON",
        async: false,
        success: function (res) {
            if (res.code === "201") {
                alert(res.msg)
            }
            window.location.href = "/goLoginIn";
        },
        error: function (e) {
            alert('发生错误')
        }
    })

}
